#if !GENERATOR

using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Xml.Serialization;
using System.Collections.Generic;

using YF.OneNote;


namespace YF.OneNote.DataTypes
{
  public partial class InkDrawing
  {
    public InkDrawing()
    {
      
	}

    
  
    protected override bool UpdateContents(NotesNode newContent, List<INotesChange> changes)
    {
	  InkDrawing item = (InkDrawing)newContent;
      bool changed = false;

      
      if (inkOriginX != item.inkOriginX)
      {
        changed = true;
		
		NotesPropertyChange propertyChange = new NotesPropertyChange();

        propertyChange.ChangeType = NoteChangeType.Changed;
        propertyChange.OldValue = inkOriginXField;
        propertyChange.NewValue = item.inkOriginXField;
        propertyChange.PropertyName = "inkOriginX";
        changes.Add(propertyChange);

		
        inkOriginXField = item.inkOriginXField;
      }

      if (inkOriginY != item.inkOriginY)
      {
        changed = true;
		
		NotesPropertyChange propertyChange = new NotesPropertyChange();

        propertyChange.ChangeType = NoteChangeType.Changed;
        propertyChange.OldValue = inkOriginYField;
        propertyChange.NewValue = item.inkOriginYField;
        propertyChange.PropertyName = "inkOriginY";
        changes.Add(propertyChange);

		
        inkOriginYField = item.inkOriginYField;
      }

      if (isUnclassified != item.isUnclassified)
      {
        changed = true;
		
		NotesPropertyChange propertyChange = new NotesPropertyChange();

        propertyChange.ChangeType = NoteChangeType.Changed;
        propertyChange.OldValue = isUnclassifiedField;
        propertyChange.NewValue = item.isUnclassifiedField;
        propertyChange.PropertyName = "isUnclassified";
        changes.Add(propertyChange);

		
        isUnclassifiedField = item.isUnclassifiedField;
      }


      return changed;
    }
  }
}

#endif